home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / VideoServices.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  4.5 KB  |  140 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        VideoServices.a
  3. ;
  4. ;    Contains:    Video Services Library Interfaces.
  5. ;
  6. ;    Version:    Technology:    PowerSurge 1.0.2
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__VIDEOSERVICES__') = 'UNDEFINED' THEN
  18. __VIDEOSERVICES__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__NAMEREGISTRY__') = 'UNDEFINED' THEN
  24.     include 'NameRegistry.a'
  25.     ENDIF
  26.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  27.     include 'Quickdraw.a'
  28.     ENDIF
  29.  
  30.  
  31. kTransparentEncoding            EQU        0
  32. kInvertingEncoding                EQU        1
  33.  
  34. kTransparentEncodingShift        EQU        $00
  35. kTransparentEncodedPixel        EQU        $01
  36. kInvertingEncodingShift            EQU        $02
  37. kInvertingEncodedPixel            EQU        $04
  38.  
  39.  
  40.  
  41.  
  42. kHardwareCursorDescriptorMajorVersion EQU $0001
  43. kHardwareCursorDescriptorMinorVersion EQU $0000
  44. ; typedef UInt32 *                        UInt32Ptr
  45.  
  46. HardwareCursorDescriptorRec RECORD 0
  47. majorVersion             ds.w    1                ; offset: $0 (0)
  48. minorVersion             ds.w    1                ; offset: $2 (2)
  49. height                     ds.l    1                ; offset: $4 (4)
  50. width                     ds.l    1                ; offset: $8 (8)
  51. bitDepth                 ds.l    1                ; offset: $C (12)
  52. maskBitDepth             ds.l    1                ; offset: $10 (16)
  53. numColors                 ds.l    1                ; offset: $14 (20)
  54. colorEncodings             ds.l    1                ; offset: $18 (24)
  55. flags                     ds.l    1                ; offset: $1C (28)
  56. supportedSpecialEncodings  ds.l    1                ; offset: $20 (32)
  57. specialEncodings         ds.l    16                ; offset: $24 (36)
  58. sizeof                     EQU *                    ; size:   $64 (100)
  59.                         ENDR
  60. ; typedef struct HardwareCursorDescriptorRec * HardwareCursorDescriptorPtr
  61.  
  62.  
  63. kHardwareCursorInfoMajorVersion    EQU        $0001
  64. kHardwareCursorInfoMinorVersion    EQU        $0000
  65. HardwareCursorInfoRec    RECORD 0
  66. majorVersion             ds.w    1                ; offset: $0 (0)        ;  Test tool should check for kHardwareCursorInfoMajorVersion1
  67. minorVersion             ds.w    1                ; offset: $2 (2)        ;  Test tool should check for kHardwareCursorInfoMinorVersion1
  68. cursorHeight             ds.l    1                ; offset: $4 (4)
  69. cursorWidth                 ds.l    1                ; offset: $8 (8)
  70. colorMap                 ds.l    1                ; offset: $C (12)        ;  nil or big enough for hardware's max colors
  71. hardwareCursor             ds.l    1                ; offset: $10 (16)
  72. reserved                 ds.l    6                ; offset: $14 (20)        ;  Test tool should check for 0s
  73. sizeof                     EQU *                    ; size:   $2C (44)
  74.                         ENDR
  75. ; typedef struct HardwareCursorInfoRec * HardwareCursorInfoPtr
  76.  
  77.  
  78.  
  79. kVBLInterruptServiceType        EQU        'vbl '
  80. kHBLInterruptServiceType        EQU        'hbl '
  81. kFrameInterruptServiceType        EQU        'fram'
  82. kConnectInterruptServiceType    EQU        'dci '                ; Renamed -- Use kFBCheckInterruptServiceType
  83. kFBConnectInterruptServiceType    EQU        'dci '                ; Demand to check configuration (Hardware unchanged)
  84. kFBChangedInterruptServiceType    EQU        'chng'                ; Demand to rebuild (Hardware has reinitialized on dependent change)
  85. kFBOfflineInterruptServiceType    EQU        'remv'                ; Demand to remove framebuffer (Hardware not available on dependent change -- but must not buserror)
  86. kFBOnlineInterruptServiceType    EQU        'add '                ; Notice that hardware is available (after being removed)
  87.  
  88. kMaxDisplayConfigDataSize        EQU        64                    ; Max data size for VSLSetDisplayConfiguration
  89. ; typedef ResType                         InterruptServiceType
  90.  
  91. ; typedef UInt32                         InterruptServiceIDType
  92.  
  93. ; typedef InterruptServiceIDType *        InterruptServiceIDPtr
  94.  
  95. ;
  96. ; extern OSErr VSLNewInterruptService(RegEntryID *serviceDevice, InterruptServiceType serviceType, InterruptServiceIDPtr serviceID)
  97. ;
  98.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  99.         IMPORT_CFM_FUNCTION VSLNewInterruptService
  100.     ENDIF
  101.  
  102. ;
  103. ; extern OSErr VSLWaitOnInterruptService(InterruptServiceIDType serviceID, Duration timeout)
  104. ;
  105.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  106.         IMPORT_CFM_FUNCTION VSLWaitOnInterruptService
  107.     ENDIF
  108.  
  109. ;
  110. ; extern OSErr VSLDisposeInterruptService(InterruptServiceIDType serviceID)
  111. ;
  112.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  113.         IMPORT_CFM_FUNCTION VSLDisposeInterruptService
  114.     ENDIF
  115.  
  116. ;
  117. ; extern OSErr VSLDoInterruptService(InterruptServiceIDType serviceID)
  118. ;
  119.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  120.         IMPORT_CFM_FUNCTION VSLDoInterruptService
  121.     ENDIF
  122.  
  123. ;
  124. ; extern Boolean VSLPrepareCursorForHardwareCursor(void *cursorRef, HardwareCursorDescriptorPtr hardwareDescriptor, HardwareCursorInfoPtr hwCursorInfo)
  125. ;
  126.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  127.         IMPORT_CFM_FUNCTION VSLPrepareCursorForHardwareCursor
  128.     ENDIF
  129.  
  130. ;
  131. ; extern OSErr VSLSetDisplayConfiguration(RegEntryID *device, RegPropertyName *propertyName, void *configData, long configDataSize)
  132. ;
  133.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  134.         IMPORT_CFM_FUNCTION VSLSetDisplayConfiguration
  135.     ENDIF
  136.  
  137.  
  138.     ENDIF ; __VIDEOSERVICES__ 
  139.  
  140.